﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 讲师
    /// </summary>
    public class Teacher
    {
        public Teacher() {
            this.CreateDate = DateTime.Now;
            this.UpdateDate = DateTime.Now;
        }

        public Guid Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [MaxLength(200)]
        public string HeadImage { get; set; }
        /// <summary>
        /// 讲师介绍
        /// </summary>
        public string Intro { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime UpdateDate { get; set; }

        /// <summary>
        /// 课集合
        /// </summary>
        public ICollection<Course> Courses { get; set; }
    }

}
